import request from '@/utils/request'

// 查询案件常用语配置
export function getStateCyy(query) {
  return request({
    url: '/caseconfig/amCaseLanguage/getStateCyy',
    method: 'get',
    params: query
  })
}

// 查询案件常用语配置
export function listAmCaseLanguage(query) {
  return request({
    url: '/caseconfig/amCaseLanguage/list',
    method: 'get',
    params: query
  })
}

// 查询案件常用语配置
export function getAmCaseLanguage(langId) {
  return request({
    url: '/caseconfig/amCaseLanguage/' + langId,
    method: 'get'
  })
}

// 新增案件常用语配置
export function addAmCaseLanguage(data) {
  return request({
    url: '/caseconfig/amCaseLanguage',
    method: 'post',
    data: data
  })
}

// 修改案件常用语配置
export function updateAmCaseLanguage(data) {
  return request({
    url: '/caseconfig/amCaseLanguage',
    method: 'put',
    data: data
  })
}

// 删除案件常用语配置
export function delAmCaseLanguage(langId) {
  return request({
    url: '/caseconfig/amCaseLanguage/' + langId,
    method: 'delete'
  })
}
